﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace Spider.Mode
{
    public class DxwEventMode
    {
        public class Base_info
        {
            /// <summary>
            /// 
            /// </summary>
            public int choice { get; set; }

            /// <summary>
            /// 燕京啤酒下发涨价通知，单瓶零售价顺涨1元
            /// </summary>
            public string title { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string time { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string desc { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string img { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string chart_url { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int chart_height { get; set; }

            /// <summary>
            /// 事件类型：啤酒涨价
            /// </summary>
            public string sub_event { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int collected { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string content_url { get; set; }
        }

        public class Filter_listItem
        {
            /// <summary>
            /// 按默认
            /// </summary>
            public string t { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string v { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int current { get; set; }
        }

        public class TagItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string url { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string w { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string h { get; set; }
        }

        public class AttrItem
        {
            /// <summary>
            /// 流通值
            /// </summary>
            public string t { get; set; }

            /// <summary>
            /// 184亿
            /// </summary>
            public string v { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string color { get; set; }
        }

        public class ListItem
        {
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty(PropertyName = "params")]
            public Params _Params { get; set; }

            /// <summary>
            /// 燕京啤酒
            /// </summary>
            public string name { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string code { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string zdf { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int zdf_color { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<TagItem> tag { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<AttrItem> attr { get; set; }

            /// <summary>
            /// </summary>
            public string desc { get; set; }
        }

        public class Stock
        {
            /// <summary>
            /// 趣炒股多角度为你甄选龙头：
            /// </summary>
            public string intro { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<Filter_listItem> filter_list { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<ListItem> list { get; set; }
        }

        public class Event
        {
            /// <summary>
            /// 
            /// </summary>
            public int count { get; set; }
        }

        public class Params
        {
            /// <summary>
            /// 
            /// </summary>
            public string code { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string resourceid { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string mainresourceid { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string charttype { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string resolution { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int tab { get; set; }
        }

        public class Bankuai
        {
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty(PropertyName = "params")]
            public Params _Params { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string code { get; set; }

            /// <summary>
            /// 啤酒
            /// </summary>
            public string name { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string zdf { get; set; }

            /// <summary>
            /// 中国是全球最大的啤酒消费国之一，中国消费者饮用的标准啤酒占全球消费总量的26%左右。国内啤酒产量2016年8月起增速持续转正， 啤酒消费升级、单价提升是行业主要驱动力。
            /// </summary>
            public string desc { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int collected { get; set; }
        }

        public partial class Data
        {
            /// <summary>
            /// 
            /// </summary>
            public Base_info base_info { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Stock stock { get; set; }

            /// <summary>
            /// 
            /// </summary>
            [JsonProperty(propertyName: "event")]
            public Event _Event { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Bankuai bankuai { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Data data { get; set; }
    }
}